package com.liuhengjia.springbootmybatis.mapper;

import com.liuhengjia.springbootmybatis.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    @Select("SELECT id, name, age, gender, phone " +
            "FROM user " +
            "WHERE id = #{id}")
    User selectById(Integer id);
}
